package com.ruoyi.moon.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息模版对象 moon_notice_template
 * 
 * @author admin
 * @date 2024-11-08
 */
public class MoonNoticeTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 模版标题 */
    @Excel(name = "模版标题")
    private String templateTitle;

    /** 模版内容（带参数可后端替换${参数名称}） */
    @Excel(name = "模版内容", readConverterExp = "带=参数可后端替换${参数名称}")
    private String templateContent;

    /** 模版类型 */
    @Excel(name = "模版类型")
    private Long templateType;

    /** 模版状态（0：正常，1：停用） */
    @Excel(name = "模版状态", readConverterExp = "0=：正常，1：停用")
    private Integer templateState;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTemplateTitle(String templateTitle) 
    {
        this.templateTitle = templateTitle;
    }

    public String getTemplateTitle() 
    {
        return templateTitle;
    }
    public void setTemplateContent(String templateContent) 
    {
        this.templateContent = templateContent;
    }

    public String getTemplateContent() 
    {
        return templateContent;
    }
    public void setTemplateType(Long templateType) 
    {
        this.templateType = templateType;
    }

    public Long getTemplateType() 
    {
        return templateType;
    }
    public void setTemplateState(Integer templateState) 
    {
        this.templateState = templateState;
    }

    public Integer getTemplateState() 
    {
        return templateState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateTitle", getTemplateTitle())
            .append("templateContent", getTemplateContent())
            .append("templateType", getTemplateType())
            .append("templateState", getTemplateState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
